mem_event: Return previous value of CR0/CR3/CR4 on change.
authorTamas K Lengyel <tamas.lengyel@zentific.com>
Thu, 30 Jan 2014 21:34:16 +0000 (22:34 +0100)
committerTim Deegan <tim@xen.org>
Thu, 27 Feb 2014 10:44:29 +0000 (10:44 +0000)
commita93b8e8ca54cc2c90d9272a06d7944d6ca615d42
tree1c3e4cc2bc5523531f9d4acdaf61af29d3bda6d8
parentc9f8e0aee507bec25104ca5535fde38efae6c6bc
mem_event: Return previous value of CR0/CR3/CR4 on change.

This patch extends the information returned for CR0/CR3/CR4 register
write events with the previous value of the register. The old value
was already passed to the trap processing function, just never placed
into the returned request. By returning this value, applications
subscribing the CR events obtain additional context about the event.

Signed-off-by: Tamas K Lengyel <tamas.lengyel@zentific.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/arch/x86/hvm/hvm.c
xen/include/public/mem_event.h